<?php
namespace Home\Model;
use Think\Model;
class SpeakingModel extends Model {
    protected $tableName = 'speaking';
    
    protected function _after_find(&$result,$options){
        $result['question'] = htmlspecialchars_decode($result['question']);
        $result['article'] = htmlspecialchars_decode($result['article']);
    }
    protected function _after_select(&$result,$options){
        foreach ($result as &$data) {
            $this->_after_find($data, $options);
        }
    }
}
?>